package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户支付订单
 * </p>
 *
 * @author zhoucl
 * @since 2023-08-21
 */
@Data
@TableName("z_vip_order")
@Accessors(chain = true)
@ApiModel(value = "VipOrder对象", description = "用户支付订单")
public class VipOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty(value = "用户ime")
    private String userImei;

    @ApiModelProperty(value = "vip产品")
    private String vipKey;

    @ApiModelProperty(value = "交易单号")
    private String transactionId;

    @ApiModelProperty(value = "原始交易单号")
    private String originalTransactionId;

    @ApiModelProperty(value = "来源App唯一编号")
    private String bundleId;

    @ApiModelProperty(value = "vip价格（单位元）")
    private Integer vipPrice;

    @ApiModelProperty(value = "订单日志")
    private String log;

    @ApiModelProperty(value = "1：成功，-1：失败，0：待支付，2：待处理")
    private Integer status;

    @ApiModelProperty(value = "错误次数，超过10次之后不处理")
    private Integer errorNum;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
